package com.example.demo.enums;

public enum MsgEnum {

    ONE_WAY(1,"单向发送消息"),

    ASYNC(2,"异步发送消息"),

    ASYNCORDERLY(4,"按照顺序发送消息"),

    SYNC(3,"同步发送消息");


    private Integer key;

    private String desc;

    MsgEnum(Integer key,String desc){
        this.key = key;
        this.desc = desc;
    }


    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
